package net.huanger.gametools.mapeditor.ui.impl;

import java.awt.Graphics;
import java.awt.event.MouseEvent;

import net.huanger.gametools.mapeditor.model.MapModel;
import net.huanger.gametools.mapeditor.ui.IDiv;
import net.huanger.gametools.mapeditor.ui.MUtils;
import net.huanger.gametools.mapeditor.ui.Operate;

public class AroundOperate implements Operate,IDiv
{
  private int row,column;
  public AroundOperate(int row, int column)
  {
    this.row=row;
    this.column=column;
  }

  @Override
  public boolean isShow()
  {
    return true;
  }

  @Override
  public void drawDiv(Graphics g)
  {
    g.drawRect(0, 0, column*MUtils.MAP_UNIT, row*MUtils.MAP_UNIT);
  }

  @Override
  public void isShow(boolean show)
  {
    
  }

  @Override
  public void init()
  {
    
  }

  @Override
  public void titeClick(MouseEvent e, int row, int column)
  {
    
  }

  @Override
  public void mapClick(MouseEvent e)
  {
    
  }

  @Override
  public IDiv getMapDiv()
  {
    return this;
  }

  @Override
  public boolean hasData()
  {
    return false;
  }

  @Override
  public int[] getData()
  {
    return null;
  }


  @Override
  public void restoreData(MapModel mm)
  {
    // TODO Auto-generated method stub
    
  }

}
